package com.usian.service.impl;

import com.usian.User;
import com.usian.service.UserService;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    //占位符传参
    @Override
    public User findByUserId(Integer userId) {
        return new User(userId,"ribbon调用1",100);
    }

    //问号传参
    @Override
    public User findById(Integer id) {
        return new User(id,"问号传参",100);
    }

    //对象传参
    @Override
    public String insertUser(User user) {
        return "对象传参"+user.getName();
    }
}
